package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-21
 * Time: 下午9:21
 * To change this template use File | Settings | File Templates.
 */

/**
 * 用户组旗下的资源菜单
 */
@Entity
@Table(name = "ORG_GorupResources")
public class ORG_GorupResources implements Serializable {
    @Id
    @GenericGenerator(name = "GorupResGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "GorupResGenerator") //使用uuid的生成策略
    private Integer id;

    private Integer gorupManagerId;//用户组id
    private Integer resourcesId;//资源菜单id
    private Date createDate;//创建时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGorupManagerId() {
        return gorupManagerId;
    }

    public void setGorupManagerId(Integer gorupManagerId) {
        this.gorupManagerId = gorupManagerId;
    }

    public Integer getResourcesId() {
        return resourcesId;
    }

    public void setResourcesId(Integer resourcesId) {
        this.resourcesId = resourcesId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
